STEP 12: Now we can give the user a hint.

Our program will tell the user if their guess was too high and then go back to the loop to let them guess again.

  • Delete this line inside of your if-statement: print(True)
  • Go to , drag in Say INSIDE your if statement, and change the string to "Too high!".
  • Then, drag out Wait and drop it INSIDE the if-statement, right below .say().

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)